package com.topideal.supplychain.hades.schedule;

import com.topideal.supplychain.framework.schedule.MyScheduler;
import org.springframework.stereotype.Component;

@Component
public class MySchedulerImpl extends MyScheduler {

    public void scheduleJobs() throws Exception {
       //startJob("运单号池延迟预警", ShipmentPoolWarnSchedule.class, "shipmentPoolWarnJob", "*/10 * * * * ?");
        // startJob("京配失败重试定时任务", JdRangeCheckSchedule.class, "rangeCheckJob", "*/10 * * * * ?");
    }

    @Override
    public void addJob(String jobName, Class<?> clazz, String method, String cron)
            throws Exception {
        startJob(jobName, clazz, method, cron);
    }
}
